package baoxin.com.robotcoach;

import android.content.Intent;
import android.os.Bundle;

import java.util.Timer;
import java.util.TimerTask;

public class SplashActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        Timer timer = new Timer();
        TimerTask task = new TimerTask() {
            @Override
            public void run() {
                runOnUiThread(new Runnable() {
                    @Override
                    public void run() {
                        Intent it = new Intent(SplashActivity.this,LoginActivity.class);
                        startActivity(it);
                        finish();
                    }
                });
            }
        };
        timer.schedule(task,1000);

    }
}
